﻿@{
    Layout = null;
    var logs = ViewBag.FailLog as List<Tuple<string, string, DateTime>>;
}



<!-- Small boxes (Stat box) -->
<div class="row">
    <div class="col-lg-4 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>@ViewBag.JobCount</h3>

                <p>任务数</p>
            </div>
            <div class="icon">
                <i class="fa ion-clipboard"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-4 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-green">
            <div class="inner">
                <h3>@ViewBag.JobRunningCount</h3>
                <p>运行</p>
            </div>
            <div class="icon">
                <i class="ion ion-play"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-4 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-red">
            <div class="inner">
                <h3>@ViewBag.AlarmCount</h3>

                <p>警告</p>
            </div>
            <div class="icon">
                <i class="ion ion-alert-circled"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-md-4">
        <div class="box box-solid">
            <div class="box-header with-border">
                <i class="fa fa-warning"></i>

                <h3 class="box-title">报警信息</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <dl>

                    @if (logs == null || logs.Count == 0)
                    {
                        <dt>无</dt>
                    }
                    else
                    {
                        foreach (var log in logs)
                        {
                            <dt>@log.Item1</dt>
                            <dd>返回信息：@log.Item2</dd>
                            <dd>@log.Item3.ToString("yyyy-MM-d HH:mm:ss")</dd>
                        }

                    }
                </dl>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>